package java56_4;

import java.util.Scanner;

public class TaskEx {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String reply = "n";
		// 每天检查是否合格
		while (!"y".equals(reply)) {
			System.out.println("上午看理论，下午上机");
			System.out.println("老师检查，合格了没有？");
			reply = sc.next();// 检查结果
		}
		System.out.println("合格。。。");
	}
}
